package com.jiarong.service.impl;

import com.jiarong.domain.Account;
import com.jiarong.mapper.AccountMapper;
import com.jiarong.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 加绒
 * @date 2021/10/29 11:14
 */
@Service
public class AccountServiceImpl implements AccountService {
    @Autowired
    private AccountMapper accountMapper;

    @Override
    public void save(Account account) {
        accountMapper.insertAccount(account);
    }

    @Override
    public List<Account> showList() {
        return accountMapper.selectAll();
    }
}
